export default class ObjectUtils {
  static ensureNestedObject(obj, path: string[]): object {
    return path.reduce((acc, key) => {
      if (!acc[key]) {
        acc[key] = {};
      }
      return acc[key];
    }, obj);
  }
}
